package org.anachronos.jeep.ui.trace.util;

import org.anachronos.jeep.model.trace.Class;
import org.anachronos.jeep.model.trace.Method;

public class MethodSignatureGenerator {
	private MethodSignatureGenerator() {
		// prevent instantiation
	}
	
	public static String createMethodSignature(final Method method) {
		final StringBuffer buffer = new StringBuffer(method.getName()).append("(");
		
		String delim = "";
		for (final Class argType : method.getArgumentTypes()) {
			buffer.append(delim).append(argType.getName());
		}
		buffer.append("):").append(method.getReturnType().getName());
		return buffer.toString();
	}
}
